package com.example.mountainwalker.service;

import com.example.mountainwalker.entity.TravelAgencyDetail;
import com.example.mountainwalker.service.impl.PageResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface TravelAgencyService {

    PageResult<TravelAgencyDetail> getTravelAgencyListByCondition(
            String travelAgencyName, String officePhone, String province,
            String city, String auditStatus, Integer pageNum, Integer pageSize);

    TravelAgencyDetail getTravelAgencyById(Integer id);

    @Transactional
    int deleteTravelAgencyById(Integer id);


    //秀嘎哎
    @Transactional
    int batchDeleteTravelAgency(List<Integer> ids);

    @Transactional
    int updateTravelAgency(TravelAgencyDetail travelAgencyDetail);
}